import request from '@/utils/request'

// 查询农资管理列表
export function listAgricultural_resource(query) {
  return request({
    url: '/plant/agricultural_resource/list',
    method: 'get',
    params: query
  })
}

// 查询农资管理详细
export function getAgricultural_resource(id) {
  return request({
    url: '/plant/agricultural_resource/' + id,
    method: 'get'
  })
}

// 新增农资管理
export function addAgricultural_resource(data) {
  return request({
    url: '/plant/agricultural_resource',
    method: 'post',
    data: data
  })
}

// 修改农资管理
export function updateAgricultural_resource(data) {
  return request({
    url: '/plant/agricultural_resource',
    method: 'put',
    data: data
  })
}

// 删除农资管理
export function delAgricultural_resource(id) {
  return request({
    url: '/plant/agricultural_resource/' + id,
    method: 'delete'
  })
}
